<template>
  <div class="admin-content-right">
    <right-filter @commit="get" @boss="boss"></right-filter>
    <right-homework  ref="homework"></right-homework>

    <!-- 筛选条件组件 -->
  </div>
</template>

<script>
// 导入进度条组件
// import RightProgressBar from './RightComponents/RightProgressBar.vue';
import RightFilter from './RightComponents/RightFilter.vue';
import RightHomework from './RightComponents/RightHomework.vue';

export default {
  // 注册进度条组件
  components: {
    // RightProgressBar,
    RightFilter,
    RightHomework,
  },

  data() {
    return {
      stage: '',
      dir: '',
      group: '',
      stuList:[],
    };
  },
  methods: {
    get(msg1,msg2,msg3){
      this.stage = msg1;
      this.dir = msg2;
      this.group = msg3;
    },
    // 跨组件执行筛选函数
    boss(){
      // 统一调用两个函数实现同时申请并返回数组
      if(this.dir!='开发'){
            this.group=this.dir
        }
      this.$refs.homework.list(this.stage,this.dir,this.group);
      // this.$refs.childEvent.show();
    }
  },
};
</script>

<style lang="less" scoped>
.admin-content-right {
  width: 27%;
  height: 94vh;
  // background-color: blue;
}
</style>
